package com.wk.springboot.controller;

import com.wk.springboot.service.ScheduledService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("scheduled")
@RestController
public class ScheduledController {

    @Autowired
    ScheduledService scheduledService;

    @RequestMapping("test")
    public String test() {
        scheduledService.scheduleGenDailyCheckRecord();
        return "test";
    }

    @RequestMapping("test2")
    public String test2() {
        scheduledService.generateDailyCheckRecord(10);
        return "test";
    }

    @RequestMapping("test3")
    public String test3() {
        scheduledService.mockTransactional();
        return "test";
    }

}
